package com.sumainfor.pc.gmio.feign.Zfeign;

        import com.sumainfor.common.util.JsonResult;
        import com.sumainfor.pc.gmio.fallback.ZfallBack.ZpcEpcFallback;
        import org.springframework.cloud.openfeign.FeignClient;
        import org.springframework.web.bind.annotation.*;

        import java.util.List;
        import java.util.Map;

/**
 * 调用工程部服务
 */

@FeignClient(name = "tANGNEST-PC-EPc", fallback = ZpcEpcFallback.class)
public interface ZpcEpcFeign {

    /**
     * 租后主管维修跟踪 待受理
     */
    @ResponseBody
    @GetMapping("/master/repair/key/getRepairListFromGmiod")
    JsonResult getRepairListFromGmiod(@RequestParam(value="params") Map<String,Object> params);
    /**
     * 租后主管维修跟踪 已受理
     */
    @ResponseBody
    @GetMapping("/master/repair/key/getRepairListFromGmioy")
    JsonResult getRepairListFromGmioy(@RequestParam (value="params")Map<String,Object>params);
    /**
     * 租后主管维修跟踪 已维修
     */
    @ResponseBody
    @GetMapping("/master/repair/key/getRepairListFromGmiow")
    JsonResult getRepairListFromGmiow(@RequestParam (value="params")Map<String,Object>params);
    /**
     * 工程部查询房源的配置
     */
    @ResponseBody
    @PostMapping("/housekeeper/HoHousingPlan/key/getHoInteHouConInfoList")
    JsonResult getHoInteHouConInfoList(@RequestBody Map<String,Object>params);

    /**
     * 超72小时未维修的工单
     */
    @ResponseBody
    @GetMapping("/key/NoRepairOrder/getNoRepairOrderCount")
    JsonResult getNoRepairOrderCount(@RequestParam  Map<String,Object> params);

    /**
     * 待验收
     */
    @ResponseBody
    @GetMapping("/key/NoRepairOrder/getQuarantinedRoomCount")
    JsonResult getQuarantinedRoomCount(@RequestParam Map<String,Object> params);

    /**
     * 维修工单跟踪
     */
    @ResponseBody
    @GetMapping("/key/NoRepairOrder/getRepairTracking")
    JsonResult getRepairTracking(@RequestParam Map<String,Object> params);

    /**
     * 组后主管待72小时未维修
     */
    @ResponseBody
    @GetMapping("/key/NoRepairOrder/getNoRepairOrderInteger")
    JsonResult getNoRepairOrderInteger();

    /**
     * 功能描述:
     * 根据维修账单编号获取维修工单资料
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/7/15 15:50
     */
    @GetMapping("/key/repOrd/getBillByOrdBilIdMap")
    Map<String,Object>getBillByOrdBilIdMap(@RequestParam(value = "OrdBiId") String OrdBiId﻿);


    /**
     * 租后主管查看新房验收未通过
     * @author zhoucong
     * @data 2019/8/28
     * @Param
     * @return
     */
    @ResponseBody
    @GetMapping("/key/RentHead/getNoacceptance")
    JsonResult getNoacceptance(@RequestParam Map<String,Object> params);



    /**
     * 服务关机根据房源编号查询新房验收结果
     * @author zhoucong
     * @data 2019/9/19
     * @Param
     * @return
     */
    @PostMapping("/key/GmioSearch/getHoDecorateFugjList")
    List<Map<String,Object>> getHoDecorateFugjList(@RequestParam("search") String search);


    /**
     * 根据租客id集合查询维修申请
     * @author zhoucong
     * @data 2019/9/19
     * @Param
     * @return
     */
    @PostMapping("/key/GmioSearch/getFugjRepairList")
    List<Map<String,Object>> getFugjRepairList(@RequestBody Map<String,Object> params);
}
